package com.caigou.modules.jingpin.repository

import com.caigou.comm.base.bean.HttpResult
import com.caigou.modules.jingpin.bean.JingpinBean
import com.caigou.modules.jingpin.network.HttpJingpinService
import dagger.hilt.android.scopes.ActivityRetainedScoped
import kotlinx.coroutines.flow.Flow
import javax.inject.Inject

/**
 * @author #Suyghur.
 * Created on 2021/09/26
 */
@ActivityRetainedScoped
class JingpinRepository @Inject constructor() {

    fun getJingpinList(page: Int, limit: Int): Flow<HttpResult<JingpinBean>> {
        return HttpJingpinService.service.getJingpinList(page, limit)
    }
}